package com.ruoyi.crm.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;


@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper=true)
@TableName("crm_product_info")
@ExcelIgnoreUnannotated
public class ProductInfo extends BaseEntity {
    @TableId(value = "product_id")
    @ExcelProperty(value = "产品序号")
    private Long productId;

    private Long userId;

    @ExcelProperty(value = "产品名称")
    @TableField("product_name")
    private String productName;

    @ExcelProperty(value = "价格")
    private Double price;

    @ExcelProperty(value = "成本价")
    @TableField("cost_price")
    private Double costPrice;

    @ExcelProperty(value = "合计")
    private Double aggregate;

    @ExcelProperty(value = "产品编号")
    @TableField("product_number")
    private String productNumber;

    @ExcelProperty(value = "产品描述")
    @TableField("product_description")
    private String productDescription;

    @TableField("product_unit")
    private String productUnit;

    private String launch;

    @ExcelProperty(value = "备注")
    private String remark;
}
